import { markRaw } from 'vue';
import { Cpu } from "@element-plus/icons-vue";
import Node from './chatmodel_node.vue';
import Property from './chatmodel_property.vue';

// 导出当前目录的节点元数据
 export default {
   type: "chatmodel",
   name: "大模型节点",
   category: "模型节点",
   icon: markRaw(Cpu),
   serializableFields: [
     "model",
     "modelName",
     "mcpId",
     "scene",
     "inputField",
     "outputField",
     "maxContextLength",
     "temperature",
   ],
   defaultData: {
     model: "",
     modelName: "",
     mcpId: 0,
     scene: "你是一个",
     inputField: "input_text",
     outputField: "output_text",
     maxContextLength: 2048,
     temperature: 0.7,
   },
   component: markRaw(Node),
   propertyComponent: markRaw(Property),
 };